package com.person.jc.web.template;

import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Record;
import com.person.jc.service.security.TsTemplateInfoService;

public class DynamicTemplateManageController extends Controller {
	
	public void init(){
		String tid = getPara("tid");
		Record obj = TsTemplateInfoService.me.getById(tid);
		String ifValid = String.valueOf(obj.get("if_valid"));
		if("1".equals(ifValid)){
			render(obj.getStr("t_jsp")+".jsp");
		}else{
			renderText("您现在没有可用的模板信息！");
		}
	}
}
